﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Service.DAL;

namespace Service.BAL
{
    public class ChiTietNhapHang_BAL
    {
        #region Fields
        private string maNhapHang;
        private string maSanPham;
        private int soLuong;
        private float donGia;
        private DateTime thoiDiemNhap;
        #endregion

        #region Properties
        public string MaNhapHang
        {
            get { return maNhapHang; }
            set { maNhapHang = value; }
        }
        public string MaSanPham
        {
            get { return maSanPham; }
            set { maSanPham = value; }
        }
        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
        public float DonGia
        {
            get { return donGia; }
            set { donGia = value; }
        }
        public DateTime ThoiDiemNhap
        {
            get { return thoiDiemNhap; }
            set { thoiDiemNhap = value; }
        }
        #endregion

        public static List<ChiTietNhapHang_BAL> GetAllByID(string strMaNhapHang)
        {
            return ChiTietNhapHang_DAL.GetAllByID(strMaNhapHang);
        }

        public static void Insert(ChiTietNhapHang_BAL chiTietNhapHang_BAL)
        {
            ChiTietNhapHang_DAL.Insert(chiTietNhapHang_BAL);
        }

        public static void Edit(ChiTietNhapHang_BAL chiTietNhapHang_BAL)
        {
            ChiTietNhapHang_DAL.Edit(chiTietNhapHang_BAL);
        }

    }
}
